package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.QuestionFormDTO;
import com.tianji.learning.domain.po.InteractionQuestion;
import com.tianji.learning.domain.query.QuestionPageQuery;
import com.tianji.learning.domain.vo.QuestionVO;

public interface IInteractionQuestionService extends IService<InteractionQuestion> {

    //新增问题
    void addQuestion(QuestionFormDTO dto);

    //修改问题
    void updateQuestionById(Long id, QuestionFormDTO dto);

    //用户端分页查询问题
    PageDTO<QuestionVO> pageQuestion(QuestionPageQuery questionPageQuery);

    //根据id查看问题详情
    QuestionVO getQuestionById(Long id);

    //删除问题
    void deleteById(Long id);
}